package com.yunxi.service.localService.impl.otd;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.otd.OtdWeekPlanMapper;
import com.yunxi.model.otd.OtdWeekPlan;
import com.yunxi.otd.pojo.OtdWeekPlanVO;
import com.yunxi.service.localService.otd.OtdWeekPlanService;
import org.springframework.stereotype.Service;


@Service
public class OtdWeekPlanServiceImpl extends ServiceImplPlus<OtdWeekPlanMapper, OtdWeekPlan> implements
    OtdWeekPlanService {

    @Override
    public void updateWeekPlanNum(String realName, String weekPlanCode) {
        baseMapper.updateWeekPlanNum(realName, weekPlanCode);
    }

    @Override
    public OtdWeekPlan findWeekPlanByWeek(String year, String week) {
        return baseMapper.selectWeekPlanByWeek(year, week);
    }

    @Override
    public OtdWeekPlanVO findWeekPlanById(String weekPlanId) {
        return baseMapper.selectWeekPlanById(weekPlanId);
    }

    @Override
    public Integer findWeekNumByWeek(String year, String month, String week) {
        return baseMapper.selectWeekNumByWeek(year, month, week);
    }

    @Override
    public void removeWeekPlanByCode(String weekPlanCode) {
        baseMapper.deleteWeekPlanByCode(weekPlanCode);
    }
}
